package com.biz.extenddemo.invoke;

import com.biz.extenddemo.service.FooService;
import com.lubase.core.extend.IInvokeMethod;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.HashMap;

/**
 * 获取用户数量
 *
 * @author lubase
 */
public class GetUserCountInvoke implements IInvokeMethod {

    @Autowired
    FooService fooService;

    @Override
    public Object exe(HashMap<String, String> mapParam) throws Exception {
        String p1 = checkAndGetParam("p1", mapParam);
        return fooService.getUserCount();
    }

    @Override
    public String getDescription() {
        return "通过mybatis获取用户数量";
    }

    @Override
    public String getId() {
        return "1250868649741258752";
    }
}
